#include"processtar.h"
//模拟下载
double total=1024.0; //下载文件总大小
double speed=1.0;//下载文件速度
void Download(){
    double current=0;
    while(current<=total){
        //继续下载
        FlushProcess(total,current);
        usleep(3000);
        current+=speed;//加速度
    }
    printf("\n");
    printf("Download %.2lf Done",current);
    printf("\n");
}
int main(){
    Download();
    Download();
    Download();
    Download();
    Download();
    return 0;
}
